using System;

namespace PharmacyPharnet.Core.Entity
{
	public class UnitOfMeasureInfo
	{
		protected int _id;
		protected string _name;
        protected decimal _ratePrice;
        protected int _sequenceNo;
        protected bool _isSelected;
        protected decimal _unitPrice = 0;
        protected decimal _unitCost = 0;
        protected int _parentID;
        protected decimal _rateQty = 1;

		public UnitOfMeasureInfo()
		{		
		}

        public UnitOfMeasureInfo(int id, string name, decimal ratePrice, int sequenceNo, int parentID)
		{
			_id = id;
			_name = name;
            _ratePrice = ratePrice;
            _sequenceNo = sequenceNo;
            _parentID = parentID;
		}
		
		public int Id 
		{ 
			get 
			{ 
				return _id; 
			} 
		}

		public string Name
		{
			get
			{
				return _name;
			}
		}

        public decimal RatePrice
        {
            get
            {
                return _ratePrice;
            }
            set {
                _ratePrice = value;
            }
        }

        public int SequenceNo
        {
            get
            {
                return _sequenceNo;
            }
            set
            {
                _sequenceNo = value;
            }
        }

        public bool Selected
        {
            get
            {
                return _isSelected;
            }
            set
            {
                _isSelected = value;
            }
        }

        public decimal UnitPrice
        {
            get
            {
                return _unitPrice;
            }
            set
            {
                _unitPrice = value;
            }
        }

        public decimal UnitCost
        {
            get
            {
                return _unitCost;
            }
            set
            {
                _unitCost = value;
            }
        }

        public int ParentID
        {
            get
            {
                return _parentID;
            }
            set
            {
                _parentID = value;
            }
        }

        public decimal RateQty
        {
            get
            {
                return _rateQty;
            }
            set
            {
                _rateQty = value;
            }
        }
	}
}
